package com.company.common;




public class Result {

    private  String code;
    private String msg;
    private String data;

    public static Result success(){ return  new Result(Constants.CODE_200,msg:"",data:null);}

    public static Result success(Object data){return  new Result(Constants.CODE_200,msg:"",data);}

    public static Result error( String code,String msg){return  new Result(code,msg,data:null);}

    public static Result error(){return new Result(Constants.CODE_500,msg:"系统错误",data:null);}
}
